package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CmCompanyMapper;
import com.ruoyi.system.domain.CmCompany;
import com.ruoyi.system.service.ICmCompanyService;

/**
 * 项目报价明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-05
 */
@Service
public class CmCompanyServiceImpl implements ICmCompanyService 
{
    @Autowired
    private CmCompanyMapper cmCompanyMapper;

    /**
     * 查询项目报价明细
     * 
     * @param id 项目报价明细主键
     * @return 项目报价明细
     */
    @Override
    public CmCompany selectCmCompanyById(String id)
    {
        return cmCompanyMapper.selectCmCompanyById(id);
    }

    /**
     * 查询项目报价明细列表
     * 
     * @param cmCompany 项目报价明细
     * @return 项目报价明细
     */
    @Override
    public List<CmCompany> selectCmCompanyList(CmCompany cmCompany)
    {
        return cmCompanyMapper.selectCmCompanyList(cmCompany);
    }

    /**
     * 新增项目报价明细
     * 
     * @param cmCompany 项目报价明细
     * @return 结果
     */
    @Override
    public int insertCmCompany(CmCompany cmCompany)
    {
        return cmCompanyMapper.insertCmCompany(cmCompany);
    }

    /**
     * 修改项目报价明细
     * 
     * @param cmCompany 项目报价明细
     * @return 结果
     */
    @Override
    public int updateCmCompany(CmCompany cmCompany)
    {
        return cmCompanyMapper.updateCmCompany(cmCompany);
    }

    /**
     * 批量删除项目报价明细
     * 
     * @param ids 需要删除的项目报价明细主键
     * @return 结果
     */
    @Override
    public int deleteCmCompanyByIds(String[] ids)
    {
        return cmCompanyMapper.deleteCmCompanyByIds(ids);
    }

    /**
     * 删除项目报价明细信息
     * 
     * @param id 项目报价明细主键
     * @return 结果
     */
    @Override
    public int deleteCmCompanyById(String id)
    {
        return cmCompanyMapper.deleteCmCompanyById(id);
    }
}
